package com.zsqat.eshop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsqat.common.utils.PageUtils;
import com.zsqat.eshop.product.entity.BrandEntity;
import com.zsqat.eshop.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author zsqat
 * @email 491192853@qq.com
 * @date 2020-11-19 16:40:59
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

  PageUtils queryPage(Map<String, Object> params);

  void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

  // 由于品牌更新，所以也更新对应的品牌和分类表
  void updateBrand(Long brandId, String brandName);
  void updateCategory(Long catId, String catName);
  List<BrandEntity> getBrandsByCatId(Long catId);
}

